#ifndef CZX_STREXT
#define CZX_STREXT

#include <string.h>

/* returns the index within the string s of the first occurrence of the specified string t  */
int indexof(const char *s, const char *t);
/* returns the index within the string s of the last occurrence of the specified string t  */
int lastindexof(const char *s, const char *t);
/* return 0 if true, -1 if false */
int startwith(const char *s, const char *t);
int endwith(const char *s, const char *t);
void ltrim(char *s);
void rtrim(char *s);
void trim(char *s);

#endif
